package com.example.service;

import com.alibaba.fastjson.JSONObject;
import com.example.pojo.User;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
@Service
public interface UserService {
    /**添加用户**/
    Object addUser(JSONObject json);

    /**登录验证**/
    Object login(JSONObject json);

    /**更新用户信息**/
    Object update(JSONObject json, User user);

    Object getUser(HttpServletRequest req);

    Object find(JSONObject json);
}
